<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>凡客VANCL</title>
		<script type="text/javascript">
		var getCartDataUrl = "<?php echo U('getCartData');?>";
		var delCartUrl = "<?php echo U('Cart/del');?>";
		</script>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/public.css"/>
		<script src="http://localhost/vshop/Template/default/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://localhost/vshop/Template/default/js/public.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/index.css"/>
		<script type="text/javascript" src="http://localhost/vshop/Template/default/js/index.js"></script>
		<style type="text/css">
		.shopList .contentDiv {width: 231px;height: 306.5px;float: left;margin-right: 9px;}
		.shopList .contentDiv .contentImg {width: 230px;height: 230px;position: relative;}
		.shopList .contentDiv .contentImg a {display: block;width: 230px;height: 230px;border: 1px solid #DBD7D6;}
		.shopList .contentDiv .contentImg a img {width: 230px;height: 230px;}
		.shopList .contentDiv .contentImg a i {
			background: url(./images/sprites_20130606.png) no-repeat 0px -631px;
			width: 40px;height: 23px;display: block;position: absolute;top: 0px;
		}
		.shopList .contentDiv .contentDivA {
			color: #727171;font-size: 13px;text-align: center;display: block;margin-top: 20px;
		}
		.shopList .contentDiv span {
			color: #B81C22;font-size: 13px;text-align: center;display: block;margin-top: 10px;
		}
		</style>
	</head>
	<body>
		<!-- 头部开始 -->
		<div class="haad">
			<div class="haadTop">
				<div class="haadTopL">
					    <?php if(session('uname') && session('uid')){ ?>
					<p>
						您好，<a href="<?php echo U('Member/index');?>" style="color: #A10000;"><?php echo $hd['session']['uname'];?></a>&nbsp;
						<span>欢迎光临凡客诚品！</span>&nbsp;
						<a href="<?php echo U('User/out');?>" style="color: #A10000;">退出登陆</a>
					</p>
					<?php }else{ ?>
					<p>您好，<span>欢迎光临凡客诚品！</span>&nbsp;
						<span>
							<a href="<?php echo U('User/login');?>">登陆</a>&nbsp;|&nbsp;<a href="<?php echo U('User/register');?>">注册</a>
						</span></p>
					<?php } ?>
				</div>
				<div class="haadTopR">
					<ul>
						<li class="topMenuBox">
							<a href="<?php echo U('Member/index');?>" class="topMenu">我的凡客</a>
							<ul>
								<li><a href="<?php echo U('Order/index');?>">我的订单</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!--logo和搜索开始-->
		<div class="logoSearch">
			<div class="logoL">
				<a href="<?php echo U('Index/index');?>"></a>
			</div>
			<div class="searchR">
				<div class="searchFormBox">
					<form action="" method="post">
						<input type="text" id="keyword" value="搜“帆布鞋”，体验与众不同" /><input type="submit" id="searchSub" value="" />
					</form>
				</div>
				<div class="cartBox">
					<p><a href="javascript:;">购物车(<span>0</span>)</a></p>
					<div class="BuycarTab">
						<div id="noGoodsMsg" style="display: none;">您的购物车中没有商品</div>
						<div class="havepru">
							<h2>最近加入的商品：</h2>
							<ul>
								
							</ul>
							<div class="ShopCarPageLine"></div>
							<div class="ShopCarPage">
								<div>共计(未计算促销折扣)<span>￥0</span></div>
								<strong><a href="<?php echo U('Cart/index');?>">查看购物车(<span>0</span>件)</a></strong>
							</div>
						</div>
					</div>
				</div>
				<div class="hotWord">
					<p>热门搜索：<a href="#">吉国武</a>&nbsp;<a href="#">吉国武</a></p>
				</div>
			</div>
		</div>
		<!--logo和搜索结束-->
		<!--顶部导航开始-->
		<div class="navBox">
			<div class="allProduct">
				<span class="navCon">全部商品分类</span>
			</div>
			<div class="navListBox">
				<ul>
					<?php foreach ($topCate as $k=>$v){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
					<?php }?>
				</ul>
			</div>
		</div>
		<!--顶部导航结束-->
		<!-- 头部结束 -->
		<div class="main">
			<!-- 全部商品分类开始 -->
			<div class="categoryList">
				<div class="categpost">
					<?php foreach ($topCate as $tk=>$tv){?>
						<dl>
							<h3><a href="<?php echo U('List/index',array('cid'=>$tv['cid']));?>"><?php echo $tv['cname'];?></a></h3>
							<?php foreach ($cateData as $ck=>$cv){?>
								    <?php if($tv['cid']==$cv['pid']){ ?>
									<dt><a href="<?php echo U('List/index',array('cid'=>$cv['cid']));?>"><?php echo $cv['cname'];?></a></dt>
									<dd>
										<?php foreach ($cateData as $sk=>$sv){?>
											    <?php if($cv['cid']==$sv['pid']){ ?>
												<a href="<?php echo U('List/index',array('cid'=>$sv['cid']));?>"><?php echo $sv['cname'];?></a>
											<?php } ?>
										<?php }?>
									</dd>
								<?php } ?>
							<?php }?>
						</dl>
					<?php }?>
				</div>
			</div>
			<!-- 全部商品分类结束 -->
			<!--轮播图区域和右侧start-->
			<div class="focusAd">
				<div style="width: 30%;height: 17px;"></div>
				<div class="focus">
					<div class="focusTab">
						<ul class="lunboImgs">
							<li><a href="#" title="吉国武衬衫"><img src="http://localhost/vshop/Template/default/images/jgwsj.jpg" /></a></li>
							<li><a href="#" title="吉国武衬衫"><img src="http://localhost/vshop/Template/default/images/sroll2.jpg" /></a></li>
						</ul>
						<ul class="lunboIndex">
						</ul>
					</div>
				</div>
				<div class="ad">
					<a href="#"><img src="http://localhost/vshop/Template/default/images/syycxt1.jpg" /></a>
					<a href="#"><img src="http://localhost/vshop/Template/default/images/syycxt1.jpg" /></a>
				</div>
			</div>
			<!--轮播图区域和右侧end-->
			<!--商品区域start-->
			<div class="good">
				<div class="shopTitle">
					<h2>新品上架</h2>
				</div>
				<div class="shopList">
					    <?php if(empty($newGoods)){ ?>
						<p>还没有商品</p>
					<?php }else{ ?>
						<?php foreach ($newGoods as $gk=>$gv){?>
							<div class="contentDiv">
								<div class="contentImg">
									<a href="<?php echo U('Content/index',array('gid'=>$gv['gid']));?>"><img src="http://localhost/vshop/<?php echo $gv['gpic'];?>"/><i></i></a>
								</div>
								<a class="contentDivA" style="height: 20px;overflow: hidden;" href="<?php echo U('Content/index',array('gid'=>$gv['gid']));?>"><?php echo $gv['gname'];?></a>
								<span>售价￥<?php echo $gv['gshopprice'];?></span>
							</div>
						<?php }?>
					<?php } ?>
				</div>
			</div>
			<div class="good">
				<div class="shopTitle">
					<h2>最热商品</h2>
				</div>
				<div class="shopList">
					<!-- <ul>
						<li>
							<a href="#"><img src="http://localhost/vshop/Template/default/images/rxmkz4.jpg" /></a>
						</li>
					</ul> -->
					    <?php if(empty($hotGoods)){ ?>
						<p>还没有商品</p>
					<?php }else{ ?>
						<?php foreach ($hotGoods as $k=>$v){?>
							<div class="contentDiv">
								<div class="contentImg">
									<a href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>"><img src="http://localhost/vshop/<?php echo $v['gpic'];?>"/><i></i></a>
								</div>
								<a class="contentDivA" style="height: 20px;overflow: hidden;" href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>"><?php echo $gv['gname'];?></a>
								<span>售价￥<?php echo $v['gshopprice'];?></span>
							</div>
						<?php }?>
					<?php } ?>
				</div>
			</div>
			<!--商品区域end-->
			<div class="foot">
				<ul>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li class="footLine">
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
				</ul>
			</div>
		</div>
		<div class="copyRight">
			<div class="copyRightTab"><p>Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p></div>
		</div>
	</body>
</html>
